package com.ejiaoyi.api.model.chaincode;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 功能描述：
 *
 * @Created by 2019-09-04 09:44
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "区块信息", description = "区块信息")
public class BlockInfoBean  implements Serializable {


    @JsonProperty("txId")
    @JSONField(name = "txId")
    @ApiModelProperty(value = "交易Id", required = true, example = "f77777777c2f105c02d767a19292b0da1d89b8e39f8990707e12d9b2d3bc")
    private String txId;

    @JsonProperty("status")
    @JSONField(name = "status")
    @ApiModelProperty(value = "状态码", required = true, example = "0")
    private int status;

    @JsonProperty("baseKey")
    @JSONField(name = "baseKey")
    @ApiModelProperty(value = "唯一标识", required = true, example = "0")
    private String baseKey;


    @Override
    public String toString() {
        return "BlockInfoBean{" +
                "txId='" + txId + '\'' +
                ", status=" + status +
                '}';
    }

}
